package com.dnjn.happiness.score.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum AiEnum {


    happy("happy", 9.0),

    normal("normal", 3.0),

    surprised("surprised", 1.0),

    disgust("disgust", 0.0),

    fear("fear", -1.0),

    sad("sad", -2.0),

    anger("anger", -3.0);


    private String aiType;

    private Double score;


    public static Double getScore(String aiType) {
        AiEnum[] values = AiEnum.values();
        for (AiEnum aiEnum : values) {
            if (aiType.equals(aiEnum.aiType)) {
                return aiEnum.score;
            }
        }
        return 0.0;

    }


}

